include_directories(${GTEST_INCLUDE_PATH})
include_directories(include)

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${GRATE_BINARY_DIR}/test)

macro(add_unittest test_name)
  add_executable(${test_name} ${ARGN})
  # Link with gtest.
  target_link_libraries(${test_name} gtest gtest_main)
  # Link with growth_rate core and util libraries.
  target_link_libraries(${test_name} grate_core grate_util)
endmacro()

add_subdirectory(core)
add_subdirectory(util)

# Project-specific unittests.
add_subdirectory(projects)
